package com.qf.service.impl;

import com.qf.dao.UserDao;
import com.qf.dao.impl.UserDaoImpl;
import com.qf.pojo.Admin;
import com.qf.service.UserService;

import java.util.List;

/**
 * @program: myproject
 * @description:
 * @author: mrsheng
 * @create: 2022-09-26 17:31
 **/


public class UserServiceImpl implements UserService {
    UserDao userDao=new UserDaoImpl();

    @Override
    public List<Admin> login(Admin admin) {
        return userDao.login(admin);
    }

    //查询所有


    @Override
    public List<Admin> findAll() {
        return userDao.findAll();
    }
}
